<?php

namespace app\admin\model\sales;

use think\Model;

/**
 * Discountmatrix
 */
class Discountmatrix extends Model
{
    // 表名
    protected $name = 'sales_discountmatrix';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function salestypeTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\sales\Salestypes::class, 'salestype', 'typeabbrev');
    }
}